//
//  SCCollectionViewColorFlowLayout.h
//  Shuaiche
//
//  Created by 党帅 on 2019/5/14.
//  Copyright © 2019 zzs. All rights reserved.
//

#import <UIKit/UIKit.h>

@class SCCollectionViewColorFlowLayout;
typedef struct SCSupplementaryCorner {
    BOOL header, footer;
} SCSupplementaryCorner;

@protocol SCCollectionViewColorDelegateFlowLayout <UICollectionViewDelegateFlowLayout>

- (UIColor *)collectionView:(UICollectionView *)collectionView layout:(SCCollectionViewColorFlowLayout*)collectionViewLayout colorForSection:(NSInteger)section;

- (SCSupplementaryCorner)collectionViewLayout:(SCCollectionViewColorFlowLayout*)collectionViewLayout supplementaryCorner:(NSInteger)section;
@end

@interface SCCollectionViewColorFlowLayout : UICollectionViewFlowLayout
@property (nonatomic, strong) UIColor *sectionBgColor;
@property(nonatomic, assign) CGFloat sectionCornerRadius;
@property(nonatomic, assign) BOOL bgColorMargin;
@property(nonatomic, assign) SCSupplementaryCorner corner;
//@property(nonatomic, assign) BOOL supplementaryCorner;
@property(nonatomic, assign) BOOL leftFloat;
@end
